<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>FreeDAM - @ViewBag.Title</title>
    <link href="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/Content/css")" rel="stylesheet" type="text/css" />
    <script src="@System.Web.Optimization.BundleTable.Bundles.ResolveBundleUrl("~/Scripts/js")" type="text/javascript"></script>
    <script type="text/javascript" src="~/Scripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
    var fullPath = '@Url.Content("~")';
    function GetPath(url) {
        return fullPath + url;
    }

    tinyMCE.init({
        mode: "textareas",
        theme: "simple"
    });
    </script>
</head>
<body>
    <header id="main-header">
        <h1>
            @Html.RouteLink("FreeDAM", "Default", new { controller = "Home", action = "Index"}) 
        </h1>
    </header>
    <nav id="top-nav">
        @if (ViewBag.IsAdminView != null && ViewBag.IsAdminView)
        {
            Html.RenderAction("AdminMenu", "Nav", new { area = "Admin" });
        }
    </nav>
    <section id="main-content" class="container">
        @RenderBody()
    </section>
</body>
</html>
